/* styles.css */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* 导航菜单 */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #0073e6;
    z-index: 1000;
    display: flex;
    justify-content: center;
}

#navbar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

#navbar ul li {
    margin: 0 10px;
}

#navbar ul li a {
    color: white;
    text-decoration: none;
    padding: 10px;
    display: block;
}

#navbar ul li a:hover {
    background-color: #005bb5;
}

/* 首页 */
header {
    background-color: #0073e6;
    color: white;
    padding: 80px 20px 20px; /* 增加顶部内边距避免导航栏遮挡 */
    text-align: center;
}

header .profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
}

header h1 {
    margin: 0;
    font-size: 2em;
}

header p {
    margin: 5px 0;
}

.contact-info {
    margin-top: 10px;
}

.contact-info a {
    color: white;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* 内容部分 */
.section {
    background-color: white;
    margin: 20px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section h2 {
    border-bottom: 2px solid #0073e6;
    padding-bottom: 10px;
    color: #0073e6;
    cursor: pointer; /* 添加点击手势 */
}

.content {
    margin-top: 15px;
}

.content h3 {
    margin-top: 10px;
    color: #333;
}

ul {
    list-style-type: disc;
    margin-left: 20px;
}

/* 页脚 */
footer {
    text-align: center;
    padding: 10px;
    background-color: #0073e6;
    color: white;
    margin-top: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header {
        padding-top: 60px;
    }

    .section {
        margin: 10px;
        padding: 15px;
    }

    .section h2 {
        font-size: 1.5em;
    }

    .content {
        font-size: 0.9em;
    }

    #navbar ul {
        justify-content: space-around;
    }

    #navbar ul li {
        margin: 0;
    }
}